package com.aisino.efence.service;

/**
 * @author fzc
 * @package com.aisino.efence.service
 * 秘钥服务
 * @create 2018-04-03 10:48
 **/
public interface SecretService {

    /**
     * 获取秘钥id
     * @return
     */
    String getKeyId() throws Exception;

    /**
     * 获取秘钥
     * @param id
     * @return
     */
    String getSSKey(String id) throws Exception;

    /**
     * 加密文件
     * @param source
     * @param target
     * @return
     */
    void encryptFile(String source,String target)throws Exception;
}
